# coding: utf-8

from rest_framework import serializers

from activities.models import Gathering


class GatheringSerializer(serializers.ModelSerializer):
    '''活动序列化模型'''
    class Meta:

        model = Gathering

        fields = ('id','name','image','city','starttime','endrolltime','users')

class GatheringDetailInfomationSerializer(serializers.ModelSerializer):
    '''活动详情序列化模型'''

    class Meta:

        model = Gathering

        fields = '__all__'